package com.example.book.service;

import cn.hutool.core.bean.BeanUtil;
import com.example.book.dto.BSysOperLog;
import com.example.book.mapper.BSysOperLogMapper;
import com.example.book.vo.BSysOperLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 绿松石
 * @version V1.0
 * @Title BSysOperLogService
 * @Description
 * @date 2022年05月16日 13:38
 * @since V1.0
 */
@Service
public class BSysOperLogService {

    @Autowired
    private BSysOperLogMapper bSysOperLogMapper;

    public void insertBSysOperLog(BSysOperLogVo bSysOperLoVo){
        BSysOperLog bSysOperLog=new BSysOperLog();
        BeanUtil.copyProperties(bSysOperLoVo,bSysOperLog);
        bSysOperLogMapper.insert(bSysOperLog);
    }
}
